package com.qc31.monitorlib.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.qc31.comlib.entity.LocationStatus
import com.qc31.monitorlib.login.LocationStatusModel
import com.qc31.monitorlib.R

/** @Author pc_hfjs @Date 2022/1/14 16:26 @Desc */
class CarInfoAdapter :
    BaseQuickAdapter<LocationStatus, BaseViewHolder>(R.layout.item_info_car) {
    override fun convert(holder: BaseViewHolder, item: LocationStatus) {
        holder.setText(
            R.id.tvInfoTitle,
            context.getString(LocationStatusModel.getDescByKey(item.key))
        ).setText(R.id.tvInfoValue, item.value)
    }
}